package top.hongthorn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author 泓宇网络科技工作室
 * @since 2023-12-23 21:11:10
 */
@Data
@TableName("`user`")
@ApiModel(value = "User对象", description = "用户")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名", required = true)
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @TableField("`password`")
    private String password;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "出生日期")
    @TableField("`time`")
    private Date time;

    @ApiModelProperty(value = "身份证", required = true)
    @TableField("identity_card")
    private String identityCard;

    @ApiModelProperty(value = "联系电话", required = true)
    @TableField("phone")
    private String phone;

    @ApiModelProperty("所在单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty("家庭地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "职务类型 1军事迷 2评论员 3指挥员 4情报收集者", required = true)
    @TableField("job_type")
    private Integer jobType;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty("状态 1正常登录 2封禁账号")
    @TableField("state")
    private Integer state;
}
